package main

import (
	"fmt"
)


/**
 * 接口定义
 */ 
type ProgramLanguage interface {  

	/**
	 * 定义接口方法
	 */
	operate() string
}

type Java struct{  

}

func (java Java) operate() string {  

	return "java operate difficult \n"
}

type Go struct { 

}

func (g Go) operate() string { 
	return "go opeate easy \n"
}


func main() {

	var programLanguage ProgramLanguage 

	programLanguage = new(Java)

	fmt.Printf(programLanguage.operate())

	programLanguage = new(Go)

	fmt.Printf(programLanguage.operate())
	
}